package com.zhang.learnnacos.app1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author zhanghaolian
 * @date 2021/5/9 15:18
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.zhang.learnnacos.api.app2"})
public class LearnNcosApp1 {

    public static void main(String[] args) {
        SpringApplication.run(LearnNcosApp1.class, args);
    }

    @Bean
    public RestTemplate restTemplate(){

        return new RestTemplate();
    }
}
